package com.liu.thredState_study;

public class WaitThread {
    public static void main(String[] args) {
        RunThread runThread = new RunThread();
        StudentThread studentThread = new StudentThread();
        studentThread.setThread(runThread);
        studentThread.start();
        TeacherThread teacherThread = new TeacherThread();
        teacherThread.setThread(runThread);
        teacherThread.start();
    }
}
